<template>
  <div class="dc-top-bar">
    <el-button
      size="mini"
      type="primary"
      @click="dcAcquireInfo"
    >数据中心
    </el-button>
    <el-button size="mini" type="warning">测试2</el-button>
    <el-button size="mini" type="success">测试222</el-button>
    <el-button size="mini" type="success">测试222</el-button>
    <el-button size="mini" type="success">测试222</el-button>
  </div>
</template>

<script>
export default {
  name: 'DCTopBar',
  methods: {
    dcAcquireInfo() {
      //  点击按钮后，将这个事件传给父组件
      this.$emit('dcAcquireInfo')
      //  在父组件中需要获取信息的标志传给各自组件
      //  信息组件通过检测这个值把值传给父组件，在进一步进行数据库操作
    }
  }
}
</script>

<style scoped>

</style>
